package com.oa.admin.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.joneying.common.web.response.Resp;
import com.oa.admin.dto.CertificationAddDTO;
import com.oa.admin.dto.CertificationListDTO;
import com.oa.admin.vo.CertificationDetailsVO;
import com.oa.admin.vo.CertificationListVO;
import com.oa.core.PageResult;
import com.oa.admin.entity.Certification;
import com.baomidou.mybatisplus.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 认证管理 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface ICertificationService extends IService<Certification> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<Certification> findList(Integer pageNum, Integer pageSize);

    /**
    * 根据id查询
    */
    Certification findCertificationById(String id);

    PageResult<CertificationListVO> findCertificationList(CertificationListDTO certificationListDTO);

    CertificationDetailsVO findCertificationDetails(String id);

    Resp add(CertificationAddDTO certificationAddDTO);

    Resp edit(CertificationAddDTO certificationAddDTO);

    void export(CertificationListDTO certificationListDTO, HttpServletResponse response);
}
